<template>
  <!-- 搜索 -->
  <div class="search">
    <div class="search-in" @tap="toSearch">
      <icon type="search" size="14"/>
      <text>搜索</text>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Search',
  methods: {
    toSearch () {
      wx.navigateTo({ url: '/pages/search/main' });
    }
  }
}
</script>

<style>
.search {
  padding: 20rpx;
  /* background-color: #ff2d49; */
  background-image: linear-gradient(180deg, #ff2d49, #f36f73);
}
.search-in {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60rpx;
  line-height: 60rpx;
  color: #ddd;
  background-color: #fff;
  font-size: 28rpx;
  border-radius: 10rpx;
}
.search-in icon {
  height: 34rpx;
  margin-right: 10rpx;
}
</style>
